
<?

require_once ("application.list.inc");

global $_GLOBAL_DBH;
global $_OBJECT_IFACE_PANEL;

$indexes = array (
	title=>array (label=>"Title",order=>"DEFAULT",wrapper=>"vmc_icon_milestone"),
	last=>array (label=>"Last",order=>"DEFAULT",wrapper=>"vmc_icon_user"),
	first=>array (label=>"First",order=>"DEFAULT"),
	details=>array (label=>"Details",order=>"DEFAULT",wrapper=>"vmc_icon_detail"),
	date_begin=>array (label=>"Date Begin",order=>"DEFAULT",wrapper=>"vmc_icon_date"),
	date_end=>array (label=>"Date End",order=>"DEFAULT",wrapper=>"vmc_icon_date"),
);

$object_ctl = "/admin/projects/projects/fs_projects.php?fs_tab=phases&project_id={$_REQUEST["project_id"]}&fs_tab_option=fs_phases&fs_action=view&fs_tab_phases=milestones&fs_tab_option_phases=fs_milestones&phase_id={$_REQUEST["phase_id"]}&";
$link_options = "&fs_tab=phases&project_id={$_REQUEST["project_id"]}&fs_tab_option=fs_phases&fs_action=view&fs_tab_phases=milestones&phase_id={$_REQUEST["phase_id"]}";
$list_options = array ();

$_OBJECT_IFACE_LIST = _app_create_list_object (array (
                db_conn=>$_GLOBAL_DBH,
                indexes=>$indexes,
		list_count=>"SELECT COUNT(*) FROM project_milestones WHERE phase_id={$_REQUEST["phase_id"]}",
		list_select=>"SELECT project_milestones.*,users.last,users.first FROM project_milestones,users WHERE phase_id={$_REQUEST["phase_id"]} AND assigned_id=users.id",
                list_id=>"lc_project_phase_milestones",
                list_options=>$list_options,
                primary_key=>"id",
                primary_relation=>"milestone_id",
                link_options=>$link_options,
                object_ctl=>$object_ctl
));


$_OBJECT_IFACE_TABBING_PANEL->insert_container ($_OBJECT_IFACE_LIST);

?>
